import Mock from "mockjs"


Mock.mock("/course/findCourse",
    //返回10条随机数据 
    Mock.mock({
        "data|10":[
            {
                id:"@id",
                courseName:"@cname",//随即中文名
                courseCredit:"@cname",
                url:"http://www.baidu.com"
            }
        ]
    })
)

Mock.mock("/course/520",
    Mock.mock({
        data :{
            id:0,
            credit:"5分",
            name:"数据结构",
            college:"计算机学院",
            type:"必修课",
            speciality:"大类",
        }
    })
)

